package com.ler.yrmall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ler.yrmall.product.entity.BrandEntity;
import com.ler.yrmall.product.entity.CategoryBrandRelationEntity;
import com.ler.yrmall.product.vo.CategoryBrandRelationVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Leron
 */
public interface CategoryBrandRelationMapper extends BaseMapper<CategoryBrandRelationEntity> {

    List<CategoryBrandRelationVO> listByBrandId(@Param("request") CategoryBrandRelationEntity request);

    List<BrandEntity> getBrandByCategoryId(@Param("categoryId") String categoryId);
}
